#define XP_WIN 1
#include <jsapi.h>

static JSClass global_class = {
    "global", JSCLASS_GLOBAL_FLAGS,
    JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
    JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub,
    JSCLASS_NO_OPTIONAL_MEMBERS
};

class CJS {
	private:
		JSRuntime *rt;
		JSContext *cx;
		JSObject  *global;

	public:
		CJS();

		bool OnInit();

		void OnCleanup();
};
